package com.x.crm.model;

import com.x.crm.DocDesc;
import com.x.framework.annotation.MappingColumn;
import com.x.framework.annotation.MappingTable;
import com.x.framework.model.BaseObject;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@MappingTable(tableName = "CRM_CHANNEL")
public class Channel extends BaseObject{
    @DocDesc("渠道ID")
    @MappingColumn(columnName = "CHANNEL_ID", columnPk = true, columnLength = 32)
    private String channelId;
    @DocDesc("渠道名称")
    @MappingColumn(columnName = "CHANNEL_NAME")
    private String channelName;
    @DocDesc("市场ID")
    @MappingColumn(columnName = "MARKET_ID")
    private String marketId;
    @DocDesc("车商ID")
    @MappingColumn(columnName = "SHOP_ID")
    private String shopId;
    @DocDesc("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @MappingColumn(columnName = "CHANNEL_CREATE_TIME")
    private Date channelCreateTime;
    @DocDesc("状态")
    @MappingColumn(columnName = "CHANNEL_STATE")
    private Integer channelState;
    @DocDesc("备注")
    @MappingColumn(columnName = "CHANNEL_REMARK")
    private String channelRemark;

    public Channel(){}
    public Channel(String marketId, Integer state){
        this.marketId = marketId;
        this.channelState = state;
    }

    public String getChannelId() {
        return channelId;
    }

    public void setChannelId(String channelId) {
        this.channelId = channelId;
    }

    public String getChannelName() {
        return channelName;
    }

    public void setChannelName(String channelName) {
        this.channelName = channelName;
    }

    public String getMarketId() {
        return marketId;
    }

    public void setMarketId(String marketId) {
        this.marketId = marketId;
    }

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public Date getChannelCreateTime() {
        return channelCreateTime;
    }

    public void setChannelCreateTime(Date channelCreateTime) {
        this.channelCreateTime = channelCreateTime;
    }

    public Integer getChannelState() {
        return channelState;
    }

    public void setChannelState(Integer channelState) {
        this.channelState = channelState;
    }

    public String getChannelRemark() {
        return channelRemark;
    }

    public void setChannelRemark(String channelRemark) {
        this.channelRemark = channelRemark;
    }
}
